// {{ lanChar.status.XXXXXXXXXX }}
// lan.LanChar.status.XXXXXXXXXX
// XXXXXXXXXXXXXXX: '',
var LanCharEng = {
  status: {
    HardWareResourceTitile: 'Hardware Resource',
    HardWareCPUTitle: 'CPU Usage',
    HardWareHDskTitle: 'HDSK Usage',
    HardWareMemTitle: 'MEM Usage',
    HardloadGraphTitleCPU: 'CPU',
    HardloadGraphTitleMem: 'Memory',
    HardloadGraphTitleDsk: 'Disk',
    THPStats: 'THROUGHPUT STATS',

    StatusPageNameDashboard: 'Dashboard',
    StatusPageNameCmdLine: 'CmdLine',
    StatusPageNameImmeLog: 'ImmeLog',

    SvcInstance: 'Service Instance',
    SvcInstanceSelectHint: 'Select Service Instance',

    CommandLineTitle: 'Command Line Interactive',
    CommandLineInput: 'Command Line Input',
    CommandLineOutput: 'Command Execute Output',
    CommandHistory: 'Command History',

    ImmeLogOutput: 'Immediate Log Output',

    HealthFine: 'Work Fine',
    HealthNotConnect: 'Not Connected',
    HealthConnected: 'Connected',
    HealthNotLogin: 'Not Login',
  },
  // {{ lanChar.ruleConfig.XXXXXXXXXX }}
  // lan.LanChar.ruleConfig.XXXXXXXXXX
  // lanChar.ruleConfig.XXXXXXXXXX
  ruleConfig: {
    MCGroupRuleTitle: 'MC Group Rules Config',
    MCGroupStatusTitle: 'MC Group Rules Status',
    MCGroupInfoEditTitle: 'MC Group Info Edit',
    MCGroupTerminalUriAddTitle: 'MC Group Terminal Uri Add',
    MCGroupTerminalUriModTitle: 'MC Group Terminal Uri Mod',
    MCGroupRuleViewDialogTitle: 'MC Group Rule Config',
    MCGroupStatusViewDialogTitle: 'MC Group Status Info',
    MCGroupRuleName: 'Rule Name',
    MCGroupRuleTcpUri: 'TCP Server URI',
    MCGroupRuleUdpUri: 'UDP Server URI',
    MCGroupRuleClientUri: 'Multicast URI',
    MCGroupRuleClientLimit: 'Client Limit',
    MCGroupRuleTcpServerInfo: 'TCP Server Info',
    MCGroupRuleUdpServerInfo: 'UDP Server Info',
    MCGroupRuleTerminalInfo: 'MC Terminal Info',
    MCGroupRuleNameInputLabel: 'group rule name',
    MCGroupRuleNameInputHint: 'like: group-rule-1',
    MCGroupRuleTcpUriInputHint: 'like: tcp://172.18.208.88/20001',
    MCGroupRuleUdpUriInputHint: 'like: udp://172.18.208.88/20001',
    MCGroupRuleTcpUdpUriInputHint: 'like: tcp://172.18.208.88/20001 or udp://172.18.208.88/20001',
    MCGroupRuleDelConfirm: 'Confirm to delete the group rule: ',
    MCGroupRuleModConfirm: 'Confirm to update the group rule: ',
    MCGroupRuleAddConfirm: 'Confirm to add the group rule: ',
    MCGroupRuleUpdateTCPUriConfirm: 'Confirm to update the group tcp server uri: ',
    MCGroupRuleDelTCPUriConfirm: 'Confirm to del the group tcp server uri: ',
    MCGroupRuleUpdateUDPUriConfirm: 'Confirm to update the group udp server uri: ',
    MCGroupRuleDelUDPUriConfirm: 'Confirm to del the group udp server uri: ',
    MCGroupRuleUpdateTerminalUriConfirm: 'Confirm to update the group terminal uri:',
    MCGroupRuleDelTerminalUriConfirm: 'Confirm to del the group terminal uri: ',
    MCGroupRuleAddTerminalUriConfirm: 'Confirm to add the group terminal uri: ',
    MCGroupRuleAddButtonDescp: 'Add Group Rule',
    MCGroupRuleAddButtonHint: 'Click to add new group rule',
    MCGroupRuleAddClientUriButtonDescp: 'Add Group Terminal URI',
    MCGroupRuleAddClientUriButtonHint: 'Click to add new group terminal URI',
    MCGroupRuleIntroTitle: 'MC Group Rule Config:',
    MCGroupRuleIntroSuma: 'Define IP multicast group rule, in the group, terminal message can be send to others in the group.',
    MCGroupRuleIntroName: 'Name:',
    MCGroupRuleIntroNameDesp: 'MC group rule name for index the rule.',
    MCGroupRuleIntrTcpServerUri: 'TCP Server URI:',
    MCGroupRuleIntroTcpServerUriDesp: 'The TCP end pointer at gateway for multicast tcp connections in the form of "tcp://ip-address/port".',
    MCGroupRuleIntroUdpServerUri: 'UDP Server URI:',
    MCGroupRuleIntroUdpServerUriDesp: 'The UDP end pointer at gateway for multicast tcp connections in the form of "udp://ip-address/port".',
    MCGroupRuleIntroClientUri: 'Client URI:',
    MCGroupRuleIntroClientUriDesp: 'The TCP/UDP end pointer at terminal for receiving multicating TCP/UDP message',
    MCGroupRuleIntroClientLimit: 'Client Limit:',
    MCGroupRuleIntroClientLimitDesp: 'Client limit in the Client URI list, if set, only terminals in the list can access to MC gateway, if unset, any terminal can access to MC gateway.',
    MCGroupRuleIntroNote: 'The URI information forat is: \'scheme://ip/port\', in witch, scheme can be \'tcp\' or \'udp\'.',
  },
  // {{ lanChar.sysConfig.XXXXXXXXXX }}
  // lan.LanChar.sysConfig.XXXXXXXXXX
  // lanChar.sysConfig.XXXXXXXXXX
  // this.lanChar.sysConfig.XXXXXXXXXX
  sysConfig: {
    UIVerifyUserName: 'User Name',
    UIVerifyPassword: 'Password',
    UIVerifyButtonDescp: 'Unlock',
    UIVerifyButtonHint: 'Click to unlock system config',
    UITabNameNetcard: 'Netcard',
    UITabNameRules: 'Rules',
    UITabNameApplication: 'Application',
    UITabNameSystem: 'System',

    MCOptionsConfigTitle: 'Multicast Options Config',
    MCOptionsConfigRcvBuffSize: 'Receive Buff Size',
    MCOptionsConfigCacheBuffSize: 'Cache Buff Size',
    MCOptionsConfigFIFOSize: 'FIFO Size',
    MCOptionsConfigPreallocFIFOSize: 'Prealloc FIFO Size',
    MCOptionsConfigPrivateSegmentCnt: 'Private Segment Count',
    MCOptionsConfigPrivateSegmentSize: 'Private Segment Size',
    MCOptionsConfigRcvBuffSizeHint: 'receive buff size, like: ',
    MCOptionsConfigCacheBuffSizeHint: 'cache buff size, like: ',
    MCOptionsConfigFIFOSizeHint: 'fifo size, like: ',
    MCOptionsConfigPreallocFIFOSizeHint: 'prealloc fifo Size, like: ',
    MCOptionsConfigPrivateSegmentCntHint: 'private segment count, like: ',
    MCOptionsConfigPrivateSegmentSizeHint: 'private segment size, like: ',
    MCOptionsConfigModConfirm: 'Confirm to update the MC options',
    MCOptionsConfigModButtonDescp: 'Modify Group Options',
    MCOptionsConfigModButtonHint: 'Click to modify group options',
    MCOptionsConfigIntroTitle: 'Multicast Options Config:',
    MCOptionsConfigIntroSuma: 'Configuration for group options.',
    MCOptionsConfigIntroRcvBuffSizeDescp: 'Receive buffer size with unit byte every connection socket, default: 64K bytes.',
    MCOptionsConfigIntroCacheBuffSizeDescp: 'Cache buffer size with unit byte every socket which is used to buffer blocking packets when socket transport data, default: 64K bytes.',
    MCOptionsConfigIntroFIFOSizeDescp: 'First in first out queue buffer size max value with unit byte every core thread in vpp, which is used to buffer packets from sockets, default: 64K bytes.',
    MCOptionsConfigIntroPreAllocFIFOSizeDescp: 'First in first out queue buffer size preallocate value with unit byte every core thread in vpp, which is used to buffer packets from sockets, default: 64K bytes.',
    MCOptionsConfigIntroPrivateSegmentCntDescp: 'TCP segment max count',
    MCOptionsConfigIntroPrivateSegmentSizeDescp: 'TCP segment size',
    MCOptionsConfigIntroNote: 'Partly parameter changes need reboot to take effect.',
    MCOptionsConfigModDialogTitle: 'Modify Multicast Options Config',
  },
  // {{ lanChar.uiSettings.XXXXXXXXXX }}
  // lan.LanChar.uiSettings.XXXXXXXXXX
  // lanChar.uiSettings.XXXXXXXXXX
  uiSettings: {
    UISettingsButtonTitle: 'UI Settings',
    UISettingsButtonHint: 'Click to Open UI Settings',
    UISettingsDarkModeDescp: 'Dark Mode',
    UISettingsCHSModeDescp: 'Chinese Mode',
    UISettingsLogout: 'Logout',
    UISettingsVendor: 'STARS SHINE TECH',
  },
  // {{ lanChar.uiDrawer.XXXXXXXXXX }}
  // lan.LanChar.uiDrawer.XXXXXXXXXX
  // lanChar.uiDrawer.XXXXXXXXXX
  uiDrawer: {
    UIDrawerItemHomeTitle: 'Home',
    UIDrawerItemStatusTitle: 'Status',
    UIDrawerItemConfigTitle: 'Config',
  },
  // {{ lanChar.XXXX }}
  // lan.LanChar.XXXX
  // lanChar.XXXX
  // this.lanChar.XXXX
  // globalDef.TIPINFO_DISPLAY_DURATION
  operateAdd: 'Add',
  operateDel: 'Del',
  operateMod: 'Mod',
  operateEdit: 'Edit',
  operateApply: 'Apply',
  operateClose: 'Close',
  operateSave: 'Save',
  operateUpdate: 'Update',
  operateRefresh: 'Refresh',
  operateOperate: 'Operate',

  totalNumbers: 'Totals',
  millionNumbers: 'Millions',
  secondDurations: 'seconds',
  bytes: 'Bytes',
  kBytes: 'K Bytes',
  mBytes: 'M Bytes',
  connectionNums: 'connections',

  alertInfoTitleInputError: 'Input Error',
  alertInfoParamError: 'Some mandatory param required.',
  alertInfoAuthoError: 'Username or password error, check it!',

  tipInfoOperateSuccess: 'Operate success.',
  tipInfoOperateRespFail: 'Response fail info: ',
  tipInfoOperateRequestFail: 'Request Fail: ',
  tipInfoWsConnectFail: 'Websocket connect fail',
  tipInfoWsNotConnected: 'Websocket not connected',
  tipInfoWsConnectError: 'Websocket connect error',

  inputRequiredField: '\'*\' indicates required field.',

  systemStatus0: 'System Working Fine',
  systemStatus1: 'Init not completed successfully',
  systemStatus2: 'Configuration may be out of sync',
  systemStatus3: 'Connect VPP fail',
  systemStatus4: 'Connect VPP OK',
  systemStatusUnknown: 'System status unknown',

  checkStatusYes: 'Yes',
  checkStatusNo: 'No',
  checkSave: 'Save',

  deviceInfo: 'Device Info',
  deviceOK: 'Device OK',
  deviceWarning: 'Device Warning',
  deviceError: 'Device Error',
  deviceFatal: 'Device Down',

  deviceName: 'Name',
  deviceID: 'ID',
  deviceType: 'Type',
  accessPointer: 'AP',
  terminalNum: 'MC Terms',
  groupNum: 'Group Num',
  gatewayID: 'Gateway ID',
  groupID: 'Group ID',
  description: 'Descp',

  topoViewTop: 'Top View',
  topoViewGroup: 'Group View',
  topViewTitle: 'MC Gateway Net Topo',
  groupViewTitle: 'MC Group Topo',

  thpBitrate: 'BitRate',
  thpPktsPS: 'PktRate',

  statsPkts: 'Packets Stats',
  statsBytes: 'Bytes Stats',

  checkRequired: 'Required',
  checkInvalidString: 'Invalid String',
  checkInvalidEMail: 'Invalid e-mail',
  checkInvalidUri: 'Invalid URI',

  documentation: 'Documentation',
  officialWebsite: 'Official Website',

  vemderName: 'Stars Shine',
}

var LanCharCHS = {
  status: {
    HardWareResourceTitile: '硬件资源使用情况',
    HardWareCPUTitle: 'CPU使用率',
    HardWareHDskTitle: '硬盘使用率',
    HardWareMemTitle: '内存使用率',
    HardloadGraphTitleCPU: 'CPU',
    HardloadGraphTitleMem: '内存',
    HardloadGraphTitleDsk: '硬盘',
    THPStats: '吞吐量统计',

    StatusPageNameDashboard: '仪表台',
    StatusPageNameCmdLine: '命令行工具',
    StatusPageNameImmeLog: '即时日志输出',

    SvcInstance: '服务实例',
    SvcInstanceSelectHint: '选择服务实例',

    CommandLineTitle: '命令行方式与后台主程交互',
    CommandLineInput: '命令行输入',
    CommandLineOutput: '命令执行输出',
    CommandHistory: '历史命令',

    ImmeLogOutput: '即时日志输出',

    HealthFine: '工作正常',
    HealthNotConnect: '未连接',
    HealthConnected: '已连接',
    HealthNotLogin: '未登入',
  },
  // {{ lanChar.ruleConfig.XXXXXXXXXX }}
  // lan.LanChar.ruleConfig.XXXXXXXXXX
  // lanChar.ruleConfig.XXXXXXXXXX
  ruleConfig: {
    MCGroupRuleTitle: '多播组规则配置',
    MCGroupStatusTitle: '多播组状态信息',
    MCGroupInfoEditTitle: '多播组信息编辑',
    MCGroupTerminalUriAddTitle: '增加多播组终端URI',
    MCGroupTerminalUriModTitle: '修改多播组终端URI',
    MCGroupRuleViewDialogTitle: '多播组规则',
    MCGroupStatusViewDialogTitle: '多播组信息',
    MCGroupRuleName: '组名称',
    MCGroupRuleTcpUri: 'TCP服务端URI',
    MCGroupRuleUdpUri: 'UDP服务端URI',
    MCGroupRuleClientUri: '广播终端URI',
    MCGroupRuleClientLimit: '是否限定广播终端组',
    MCGroupRuleTcpServerInfo: 'TCP服务信息',
    MCGroupRuleUdpServerInfo: 'UDP服务信息',
    MCGroupRuleTerminalInfo: '多播终端信息',
    MCGroupRuleNameInputLabel: '广播终端组名称',
    MCGroupRuleNameInputHint: '如：group-rule-1',
    MCGroupRuleTcpUriInputHint: '如：tcp://172.18.208.88/20001',
    MCGroupRuleUdpUriInputHint: '如：udp://172.18.208.88/20001',
    MCGroupRuleTcpUdpUriInputHint: '如：tcp://172.18.208.88/20001或者udp://172.18.208.88/20001',
    MCGroupRuleDelConfirm: '确认删除这条多播组规则：',
    MCGroupRuleModConfirm: '确认更新这条多播组规则：',
    MCGroupRuleAddConfirm: '确认增加这条多播组规则：',
    MCGroupRuleUpdateTCPUriConfirm: '确认更新这条多播组规则的TCP服务端URI：',
    MCGroupRuleDelTCPUriConfirm: '确认删除这个多播组规则的TCP服务端URI',
    MCGroupRuleUpdateUDPUriConfirm: '确认更新这条多播组规则的UDP服务端URI：',
    MCGroupRuleDelUDPUriConfirm: '确认删除这个多播组规则的UDP服务端URI',
    MCGroupRuleUpdateTerminalUriConfirm: '确认更新这条多播组规则的URI为：',
    MCGroupRuleDelTerminalUriConfirm: '确认删除这个多播组规则的终端URI',
    MCGroupRuleAddTerminalUriConfirm: '确认增加这个多播组规则的终端URI',
    MCGroupRuleAddButtonDescp: '增加多播组规则',
    MCGroupRuleAddButtonHint: '点击新增一条多播组规则',
    MCGroupRuleAddClientUriButtonDescp: '增加组内终端URI',
    MCGroupRuleAddClientUriButtonHint: '点击新增一条增加组内终端URI',
    MCGroupRuleIntroTitle: '多播组规则配置:',
    MCGroupRuleIntroSuma: '用来定义多个多播组终端以及网关的接入点信息，通过多播组规则可以实现组内信息的多播。',
    MCGroupRuleIntroName: '名称：',
    MCGroupRuleIntroNameDesp: '用来标识当前多播组的名称。',
    MCGroupRuleIntrTcpServerUri: 'TCP服务URI：',
    MCGroupRuleIntroTcpServerUriDesp: '当前多播组的网关TCP接入点信息，使用URI来表示，基本形式是："tcp://ip-address/port"',
    MCGroupRuleIntroUdpServerUri: 'UDP服务URI：',
    MCGroupRuleIntroUdpServerUriDesp: '当前多播组的网关UDP接入点信息，使用URI来表示，基本形式是："udp://ip-address/port"',
    MCGroupRuleIntroClientUri: '广播终端URI：',
    MCGroupRuleIntroClientUriDesp: '多播组内的终端的接入点信息，可以是TCP接入点或者UDP接入点，基本形式同网关的TCP和UDP接入点。',
    MCGroupRuleIntroClientLimit: '是否限定广播终端组：',
    MCGroupRuleIntroClientLimitDesp: '多播组内的终端是否限制在"广播终端URI"列表内，如果是，则只有列表内的终端可以连接到多播网关上并进行信息多播，如果否，则不论终端是否在列出的URI中，均可以接入到网关上并进行信息多播。',
    MCGroupRuleIntroNote: 'URI信息的基本形式是：scheme://ip/port，其中的scheme可以是"tcp"或者"udp"',
  },
  // {{ lanChar.sysConfig.XXXXXXXXXX }}
  // lan.LanChar.sysConfig.XXXXXXXXXX
  // lanChar.sysConfig.XXXXXXXXXX
  // this.lanChar.sysConfig.XXXXXXXXXX
  sysConfig: {
    UIVerifyUserName: '用户名',
    UIVerifyPassword: '密码',
    UIVerifyButtonDescp: '解锁',
    UIVerifyButtonHint: '点击解锁系统配置',
    UITabNameNetcard: '网卡配置',
    UITabNameRules: '组播规则',
    UITabNameApplication: '应用配置',
    UITabNameSystem: '系统参数',

    MCOptionsConfigTitle: '多播选项配置：',
    MCOptionsConfigRcvBuffSize: '接收缓存',
    MCOptionsConfigCacheBuffSize: '拥塞缓存',
    MCOptionsConfigFIFOSize: 'FIFO缓存',
    MCOptionsConfigPreallocFIFOSize: '预分配FIFO缓存',
    MCOptionsConfigPrivateSegmentCnt: 'TCP最大分片数',
    MCOptionsConfigPrivateSegmentSize: 'TCP分片大小',
    MCOptionsConfigRcvBuffSizeHint: '如：32K，64K，128K，256K',
    MCOptionsConfigCacheBuffSizeHint: '如：32K，64K，128K，256K',
    MCOptionsConfigFIFOSizeHint: '如：32K，64K，128K，256K',
    MCOptionsConfigPreallocFIFOSizeHint: '如：0K，16K，32K，64K',
    MCOptionsConfigPrivateSegmentCntHint: '如：4，8，16',
    MCOptionsConfigPrivateSegmentSizeHint: '如：1460（MTU-IPH-TCPH）',
    MCOptionsConfigModConfirm: '确认修改多播选项配置吗',
    MCOptionsConfigModButtonDescp: '修改多播选项配置',
    MCOptionsConfigModButtonHint: '点击修改多播选项配置',
    MCOptionsConfigIntroTitle: '多播选项配置：',
    MCOptionsConfigIntroSuma: '配置多播选项配置。',
    MCOptionsConfigIntroRcvBuffSizeDescp: '对应每条连接中,接收缓存的大小，默认值：64K字节。',
    MCOptionsConfigIntroCacheBuffSizeDescp: '对应每条连接中,拥塞重发缓存的大小，默认值：64K字节。',
    MCOptionsConfigIntroFIFOSizeDescp: '对应每个VPP线程中的先进行出队列的缓存大小，默认值：64K字节。',
    MCOptionsConfigIntroPreAllocFIFOSizeDescp: '对应每个VPP线程中的先进行出队列的预分配的缓存大小，默认值：0字节。最大可以配置成FIFO缓存大小。',
    MCOptionsConfigIntroPrivateSegmentCntDescp: 'TCP最大分片数，如：4，8，16等等。',
    MCOptionsConfigIntroPrivateSegmentSizeDescp: 'TCP分片大小，单位字节',
    MCOptionsConfigIntroNote: '部分参数需要重启才能生效。',
    MCOptionsConfigModDialogTitle: '修改多播选项配置',

  },
  // {{ lanChar.uiSettings.XXXXXXXXXX }}
  // lan.LanChar.uiSettings.XXXXXXXXXX
  // lanChar.uiSettings.XXXXXXXXXX
  uiSettings: {
    UISettingsButtonTitle: 'UI 设置',
    UISettingsButtonHint: '点击打开 UI 设置功能',
    UISettingsDarkModeDescp: '暗色模式',
    UISettingsCHSModeDescp: '中文模式',
    UISettingsLogout: '退出登陆',
    UISettingsVendor: '深圳星耀智能计算技术有限公司',
  },
  // {{ lanChar.uiDrawer.XXXXXXXXXX }}
  // lan.LanChar.uiDrawer.XXXXXXXXXX
  // lanChar.uiDrawer.XXXXXXXXXX
  uiDrawer: {
    UIDrawerItemHomeTitle: '首页',
    UIDrawerItemStatusTitle: '状态',
    UIDrawerItemConfigTitle: '配置',
  },
  // {{ lanChar.XXXX }}
  // lan.LanChar.XXXX
  // lanChar.XXXX
  // this.lanChar.XXXX
  // globalDef.TIPINFO_DISPLAY_DURATION
  operateAdd: '增加',
  operateDel: '删除',
  operateMod: '修改',
  operateEdit: '编辑',
  operateApply: '应用修改',
  operateClose: '关闭',
  operateSave: '保存',
  operateUpdate: '更新',
  operateRefresh: '刷新',
  operateOperate: '操作',

  totalNumbers: '总共',
  millionNumbers: '百万',
  secondDurations: '秒',
  bytes: '字节',
  kBytes: 'K 字节',
  mBytes: 'M 字节',
  connectionNums: '连接数',

  alertInfoTitleInputError: '输入错误',
  alertInfoParamError: '缺少一些必选参数。',
  alertInfoAuthoError: '用户名或者密码错误，请检查！',

  tipInfoOperateSuccess: '操作成功。',
  tipInfoOperateRespFail: '操作错误: ',
  tipInfoOperateRequestFail: '请求失败: ',
  tipInfoWsConnectFail: 'Websocket 连接失败',
  tipInfoWsNotConnected: 'Websocket 未连接',
  tipInfoWsConnectError: 'Websocket 连接错误',

  inputRequiredField: '\'*\' 指示的区域是必填项。',

  systemStatus0: '系统工作正常',
  systemStatus1: '系统初始化没有正确完成',
  systemStatus2: '系统配置可能已不同步',
  systemStatus3: 'VPP连接失败',
  systemStatus4: 'VPP连接成功',
  systemStatusUnknown: '系统状态未知',

  checkStatusYes: '是',
  checkStatusNo: '否',
  checkSave: '保存',

  deviceInfo: '设备信息',
  deviceOK: '设备正常',
  deviceWarning: '设备告警',
  deviceError: '设备错误',
  deviceFatal: '设备故障',

  deviceName: '名称',
  deviceID: 'ID',
  deviceType: '类型',
  accessPointer: '接入点',
  terminalNum: '多播终端数',
  groupNum: '多播组数',
  gatewayID: '网关ID',
  groupID: '组ID',
  description: '描述',

  topoViewTop: '全视图',
  topoViewGroup: '组视图',
  topViewTitle: '微服务网络拓扑结构',
  groupViewTitle: '多播组结构',

  thpBitrate: '比特速',
  thpPktsPS: '包速率',

  statsPkts: '包统计',
  statsBytes: '字节统计',

  checkRequired: '必须填写',
  checkInvalidString: '无效字符串',
  checkInvalidEMail: '无效电子邮箱地址',
  checkInvalidUri: '无效URI',

  documentation: '文档',
  officialWebsite: '官方网站',

  vemderName: '深圳星耀',
}

// var LanChar = LanCharCHS
var LanChar = LanCharCHS

var SetLanCHS = function () {
  LanChar = LanCharCHS
  return LanChar
}
var SetLanENG = function () {
  LanChar = LanCharEng
  return LanChar
}

var GetLan = function (v) {
  return LanChar
}

var SetLan = function (v) {
  return (v === 1) ? SetLanCHS() : SetLanENG()
}

var FormatHealthy = function (v) {
  switch (v) {
    case 0:
      return LanChar.systemStatus0
    case 1:
      return LanChar.systemStatus1
    case 2:
      return LanChar.systemStatus2
    case 3:
      return LanChar.systemStatus3
    case 4:
      return LanChar.systemStatus4
    default:
      return LanChar.systemStatusUnknown
  }
}

// export default {
//   LanChar,
//   // Vue.js的插件应当有一个公开方法 install。这个方法的第一个参数是 Vue 构造器，第二个参数是一个可选的选项对象。
//   install: function (Vue) {
//     Vue.prototype.LanChar = function () {}
//   },
// }

export default {
  LanChar,
  LanCharEng,
  LanCharCHS,
  SetLanCHS,
  SetLanENG,
  GetLan,
  SetLan,
  FormatHealthy,
}
